package com.example.shixun.service.impl;

import com.example.shixun.dao.CoureseLessonNoteDao;
import com.example.shixun.pojo.CourseLessonNote;
import com.example.shixun.service.CoureseLessonNoteService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CoureseLessonNoteServiceImpl implements CoureseLessonNoteService {

    @Resource
    CoureseLessonNoteDao coureseLessonNoteDao;

    @Override
    public Integer saveCourseLessonNote(CourseLessonNote courseLessonNote) {
        return coureseLessonNoteDao.saveCoureseLessonNote(courseLessonNote);
    }

    @Override
    public Integer deleteById(Integer courseId, Integer lessonId, Integer userId) {
        return coureseLessonNoteDao.deleteById(courseId,lessonId,userId);
    }

    @Override
    public Integer updateById(Integer courseId, Integer lessonId, Integer userId) {
        return coureseLessonNoteDao.updateById(courseId,lessonId,userId);
    }

    @Override
    public List<CourseLessonNote> selectCoureseLessonNoteById(Integer courseId, Integer lessonId, Integer userId) {
        return coureseLessonNoteDao.selectCoureseLessonNoteById(courseId,lessonId,userId);
    }

    @Override
    public List<CourseLessonNote> selectCoureseLessonNoteAll() {
        return coureseLessonNoteDao.selectCoureseLessonNoteAll();
    }
}
